﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    x:Class="TradeMo.About"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    >

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
	<Grid x:Name="LayoutRoot" >
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Grid.Row="0" >
			<TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" 
				Text="TRADE MObile" VerticalAlignment="Center" 
				Style="{StaticResource PhoneTextLargeStyle}" Margin="12,15,12,0">
			</TextBlock>
			<ProgressBar Height="10" VerticalAlignment="Top" 
				Style="{StaticResource TradeMoProgressBarStyle}" IsIndeterminate="True"/>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12">
			<controls:Pivot >
				<controls:PivotItem Header="welcome">
					<StackPanel >
						<TextBlock TextWrapping="Wrap">
							<Run Text="Welcome to TRADE MObile!"/>
						</TextBlock>
						<Image Height="173" Source="/Background.png" Stretch="None" Margin="0,0,0,-56"/>
						<TextBlock HorizontalAlignment="Center" >
							<Run Text="TRADE MObile " /><Run Text="version 1.2" FontSize="16"/>
						</TextBlock>
						<TextBlock TextWrapping="Wrap">
							<LineBreak/>
							<Run Text="TRADE MObile is a trademe companion application designed to give quick access to all trademe auctions."/>
							<LineBreak/>
							<LineBreak/>
							<Run Text="TRADE MObile is written independently  and is not associated with trademe." />
							<LineBreak/>
							<LineBreak/>
                            <Run Text="Support and Suggestions:" />
                        </TextBlock>
						<HyperlinkButton x:Name="SupportButton"
                                Content="trademo@drdevelop.com" HorizontalAlignment="Right" Padding="4" Click="SupportButton_Click" />
					</StackPanel>
				</controls:PivotItem>
				<controls:PivotItem Header="setup">
					<StackPanel>
						<Button x:Name="ResetCatalogButton" Content="Reset Catalog" Click="ResetCatalogButton_Click"/>
						<Button x:Name="BuyButton" Content="buy" Click="BuyButton_Click"/>
						<CheckBox Content="Hide Background" IsChecked="{Binding HideBackground, Mode=TwoWay}"/>
					</StackPanel>
				</controls:PivotItem>
			</controls:Pivot>
		</Grid>
	</Grid>
 
</phone:PhoneApplicationPage>
